Skip to content

Correct treesit-mode requirement to Emacs 29.1#202

Merged
NathanLovato merged 3 commits into
godotengine:masterfrom
charjr:update-ts-mode-version
May 23, 2026
Merged

Correct treesit-mode requirement to Emacs 29.1#202
NathanLovato merged 3 commits into
godotengine:masterfrom
charjr:update-ts-mode-version

Conversation

@charjr

@charjr charjr commented May 19, 2026

Copy link
Copy Markdown
Contributor

gdscript-ts-mode uses font-lock-function-call-face which was only introduced in version 29.1.

;; font-lock.el

(defface font-lock-function-call-face
  '((t :inherit font-lock-function-name-face))
  "Font Lock mode face used to highlight function calls."
  :group 'font-lock-faces
  :version "29.1")

'((call (identifier) @font-lock-builtin-face (:match "preload" @font-lock-builtin-face))
(call (identifier) @font-lock-function-call-face)
(attribute_call (identifier) @font-lock-function-call-face))

It won't highlight function calls correctly on lower versions. Also sincetreesit is a 29.1 feature, the mode is basically useless on lower versions anyway.

`gdscript-ts-mode` makes use of `font-lock-function-call-face` which
was only introduced in version 29.1.

As such it would not highlight function calls correctly on lower
versions. (and presumably throw a warning for a void symbol)
@jcs090218

Copy link
Copy Markdown
Collaborator

Can you also change the required Emacs version in the Eask file? Thank you!

@NathanLovato NathanLovato merged commit c82b408 into godotengine:master May 23, 2026
17 of 18 checks passed
@charjr charjr deleted the update-ts-mode-version branch May 23, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants